package io.dy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.servlet.HandlerMapping;

import java.util.Map;

@SpringBootApplication
public class MvcApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MvcApplication.class, args);

        Map<String, HandlerMapping> beansOfType = context.getBeansOfType(HandlerMapping.class);

        beansOfType.forEach((k,v)->{
            System.out.println(k + "===>" + v);
        });
    }

}
